package routers

import (
	"open_manjing/oss/controllers"
	"github.com/astaxie/beego"
	"open_manjing/oss/controllers/cluster"
)

// @APIVersion 1.0.0
// @Title OSS API stlswm版权所有
// @Description OSS 接口文档
func init() {
	beego.Router("/", &controllers.MainController{})
	ns := beego.NewNamespace("/api",
		beego.NSNamespace("/cluster/auth",
			beego.NSInclude(
				&cluster.Auth{},
			),
		),
		beego.NSNamespace("/cluster/block",
			beego.NSInclude(
				&cluster.Block{},
			),
		),
	)
	beego.AddNamespace(ns)
}
